package com.hibase.core.page.entity.listxml;


import com.hibase.core.page.entity.pageuserconfig.vo.PageUserConfigViewVO;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
import lombok.Data;

import java.util.List;

/**
 * 描述:
 *
 * @author li-wei-hua
 * @date 2021-03-23 17:47
 */
@Data
public class ListLayoutXmlVO {
	
	/**
	 * <!-- param="parentId" (只传parentId = 父类ID) -->
	 */
	@XStreamAlias("param")
    @XStreamAsAttribute
    private String param = "parentId";

    @XStreamAlias("id")
    @XStreamAsAttribute
    private String id;

    @XStreamAsAttribute
    @XStreamAlias("title")
    private String title;

    @XStreamAsAttribute
    @XStreamAlias("requestUrl")
    private String requestUrl;

    @XStreamAsAttribute
    @XStreamAlias("exportUrl")
    private String exportUrl;

    @XStreamAsAttribute
    @XStreamAlias("autoLoad")
    private Boolean autoLoad;

    @XStreamAsAttribute
    @XStreamAlias("autoHeight")
    private Boolean autoHeight;

    @XStreamAlias("quickSearch")
    private ListQuickSearchXmlVO quickSearchs;

    @XStreamAlias("customSearch")
    private ListCustomSearchsXmlVO customSearchs;

    @XStreamAlias("exportButton")
    private ListExportButtonXmlVO exportButton;

    @XStreamOmitField
    private List<ListButtonXmlVO> buttons;

    @XStreamAlias("buttons")
    private ListButtonsXmlVO button;

    @XStreamOmitField
    private List<ListCustomSearchXmlVO> customSearch;

    @XStreamImplicit(itemFieldName = "listField")
    private List<ListColumnXmlVO> listField;


    @XStreamOmitField
    private List<PageUserConfigViewVO> userConfig;
}
